<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FLV 视频播放</title>
    <script src="https://cdn.jsdelivr.net/npm/flv.js@latest"></script>
    <style>
        body { text-align: center; background: #f4f4f4; }
        video { width: 80%; max-width: 800px; margin-top: 20px; }
    </style>
</head>
<body>
<h2>FLV 视频播放</h2>
<video id="videoElement" controls autoplay></video>
<script>
    if (flvjs.isSupported()) {
        const videoElement = document.getElementById('videoElement');
        const flvPlayer = flvjs.createPlayer({
            type: 'flv',
            url: 'http://192.168.10.79:80/rtp/34020000001110000001_34020000001320000016.live.flv'
        });
        flvPlayer.attachMediaElement(videoElement);
        flvPlayer.load();
        flvPlayer.play();
    } else {
        alert('FLV.js 不支持你的浏览器');
    }
</script>
</body>
</html>
